﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KPIS.GERP.GFMS.MODEL;
using KPIS.GERP.GFMS.IBLL;
using KPIS.GERP.GFMS.IDAL;
using KPIS.GERP.GFMS.DALFactory;

namespace KPIS.GERP.GFMS.BLL
{
    public class B_HRM_MP_Jobsites : IBLL_HRM_MP_Jobsites
    {
        Common common = new Common();
        private static readonly IDAL_HRM_MP_Jobsites dal = DataAccess.Create_HRM_MP_Jobsites();

        public B_HRM_MP_Jobsites()
        {

        }

        public IList<M_HRM_MP_Jobsites> GetGFMISList(string filter)
        {
            return dal.GetGFMISList(filter);
        }

        public M_HRM_MP_Jobsites GetGFMISInfo(string seq)
        {
            int nSeq;

            if (seq == null)
                return null;

            if (common.IsNumeric(seq))
            {
                nSeq = int.Parse(seq);
                return dal.GetGFMISInfo(nSeq);
            }
            else
            {
                return null;
            }
        }
    }
}
